package com.sc.nft.enums;

import com.baomidou.mybatisplus.annotation.EnumValue;
import com.google.common.collect.Maps;
import lombok.AllArgsConstructor;
import lombok.Getter;

import java.util.Map;
@AllArgsConstructor
@Getter
public enum WhiteListEnum {
    ALL(0, "全部"),
    COMMUNITY(1, "社区网点"),
    CITY(2, "城市服务中心"),
    NULL(3, "空");


    @EnumValue
    private int code;

    private String description;

    public static Map<String, String> getAll() {
        Map<String, String> map = Maps.newLinkedHashMap();
        for (WhiteListEnum value : WhiteListEnum.values()) {
            map.put(value.name(), value.getDescription());
        }
        return map;
    }
}
